.class public Lcom/xingbook/park/a/p;
.super Landroid/widget/BaseAdapter;

# interfaces
.implements Lcom/xingbook/service/download/m;


# instance fields
.field private a:Landroid/app/Activity;

.field private b:Ljava/util/ArrayList;

.field private c:F

.field private d:Ljava/util/ArrayList;

.field private e:Lcom/xingbook/park/ui/be;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/park/ui/be;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iput-object p2, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/a/p;->d:Ljava/util/ArrayList;

    invoke-static {p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/park/a/p;->c:F

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/ui/bm;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/park/ui/bm;->a(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/p;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/p;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->notifyDataSetChanged()V

    return-void
.end method

.method public a_()V
    .locals 0

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->notifyDataSetChanged()V

    return-void
.end method

.method public a_(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/ui/bm;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Lcom/xingbook/park/ui/bm;->a_(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public b(Ljava/lang/String;I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/ui/bm;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/park/ui/bm;->b(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public b_(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/ui/bm;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Lcom/xingbook/park/ui/bm;->b_(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public c(Ljava/lang/String;I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/ui/bm;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1, p2}, Lcom/xingbook/park/ui/bm;->c(Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/a/p;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/a/p;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getItemViewType(I)I
    .locals 1

    invoke-virtual {p0, p1}, Lcom/xingbook/park/a/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/b/e;

    invoke-virtual {v0}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    invoke-super {p0, p1}, Landroid/widget/BaseAdapter;->getItemViewType(I)I

    move-result v0

    :goto_0
    return v0

    :sswitch_0
    const/4 v0, 0x1

    goto :goto_0

    :sswitch_1
    const/4 v0, 0x5

    goto :goto_0

    :sswitch_2
    const/4 v0, 0x2

    goto :goto_0

    :sswitch_3
    const/4 v0, 0x4

    goto :goto_0

    :sswitch_4
    const/4 v0, 0x6

    goto :goto_0

    :sswitch_5
    const/4 v0, 0x3

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        -0x80000000 -> :sswitch_0
        0x30 -> :sswitch_2
        0x50 -> :sswitch_3
        0x60 -> :sswitch_4
        0x70 -> :sswitch_1
        0xf0 -> :sswitch_5
    .end sparse-switch
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9

    const/4 v2, 0x0

    const/4 v8, -0x1

    const/4 v7, -0x2

    const/4 v4, 0x0

    const/4 v3, 0x1

    invoke-virtual {p0, p1}, Lcom/xingbook/park/a/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/b/e;

    if-nez v0, :cond_0

    :goto_0
    return-object v2

    :cond_0
    invoke-virtual {p0, p1}, Lcom/xingbook/park/a/p;->getItemViewType(I)I

    move-result v1

    if-ne v1, v3, :cond_4

    if-eqz p2, :cond_2

    instance-of v1, p2, Lcom/xingbook/park/ui/bh;

    if-eqz v1, :cond_2

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/bh;

    if-eqz p1, :cond_1

    move v2, v3

    :goto_1
    invoke-virtual {v1, v0, v2}, Lcom/xingbook/park/ui/bh;->a(Lcom/xingbook/park/b/e;Z)V

    :goto_2
    move-object v2, p2

    goto :goto_0

    :cond_1
    move v2, v4

    goto :goto_1

    :cond_2
    new-instance v2, Lcom/xingbook/park/ui/bh;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    invoke-direct {v2, v1, v5}, Lcom/xingbook/park/ui/bh;-><init>(Landroid/content/Context;F)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/bh;

    if-eqz p1, :cond_3

    :goto_3
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bh;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto :goto_2

    :cond_3
    move v3, v4

    goto :goto_3

    :cond_4
    const/4 v5, 0x2

    if-ne v1, v5, :cond_8

    if-eqz p2, :cond_6

    instance-of v1, p2, Lcom/xingbook/park/ui/bm;

    if-eqz v1, :cond_6

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/bm;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_5

    :goto_4
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bm;->a(Lcom/xingbook/park/b/e;Z)V

    goto :goto_2

    :cond_5
    move v3, v4

    goto :goto_4

    :cond_6
    new-instance v2, Lcom/xingbook/park/ui/bm;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    iget-object v6, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    invoke-direct {v2, v1, v5, v6}, Lcom/xingbook/park/ui/bm;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    iget-object v5, p0, Lcom/xingbook/park/a/p;->b:Ljava/util/ArrayList;

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/bm;

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/bm;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne p1, v5, :cond_7

    :goto_5
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bm;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto :goto_2

    :cond_7
    move v3, v4

    goto :goto_5

    :cond_8
    const/4 v5, 0x3

    if-ne v1, v5, :cond_c

    if-eqz p2, :cond_a

    instance-of v1, p2, Lcom/xingbook/park/ui/ax;

    if-eqz v1, :cond_a

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/ax;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_9

    :goto_6
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/ax;->a(Lcom/xingbook/park/b/e;Z)V

    goto :goto_2

    :cond_9
    move v3, v4

    goto :goto_6

    :cond_a
    new-instance v2, Lcom/xingbook/park/ui/ax;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    iget-object v6, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    invoke-direct {v2, v1, v5, v6}, Lcom/xingbook/park/ui/ax;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/ax;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne p1, v5, :cond_b

    :goto_7
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/ax;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto/16 :goto_2

    :cond_b
    move v3, v4

    goto :goto_7

    :cond_c
    const/4 v5, 0x4

    if-ne v1, v5, :cond_10

    if-eqz p2, :cond_e

    instance-of v1, p2, Lcom/xingbook/park/ui/ba;

    if-eqz v1, :cond_e

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/ba;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_d

    :goto_8
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/ba;->a(Lcom/xingbook/park/b/e;Z)V

    goto/16 :goto_2

    :cond_d
    move v3, v4

    goto :goto_8

    :cond_e
    new-instance v2, Lcom/xingbook/park/ui/ba;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    iget-object v6, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    invoke-direct {v2, v1, v5, v6}, Lcom/xingbook/park/ui/ba;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/ba;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne p1, v5, :cond_f

    :goto_9
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/ba;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto/16 :goto_2

    :cond_f
    move v3, v4

    goto :goto_9

    :cond_10
    const/4 v5, 0x5

    if-ne v1, v5, :cond_14

    if-eqz p2, :cond_12

    instance-of v1, p2, Lcom/xingbook/park/ui/bf;

    if-eqz v1, :cond_12

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/bf;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_11

    :goto_a
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bf;->a(Lcom/xingbook/park/b/e;Z)V

    goto/16 :goto_2

    :cond_11
    move v3, v4

    goto :goto_a

    :cond_12
    new-instance v2, Lcom/xingbook/park/ui/bf;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    iget-object v6, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    invoke-direct {v2, v1, v5, v6}, Lcom/xingbook/park/ui/bf;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/bf;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne p1, v5, :cond_13

    :goto_b
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bf;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto/16 :goto_2

    :cond_13
    move v3, v4

    goto :goto_b

    :cond_14
    const/4 v5, 0x6

    if-ne v1, v5, :cond_18

    if-eqz p2, :cond_16

    instance-of v1, p2, Lcom/xingbook/park/ui/bk;

    if-eqz v1, :cond_16

    move-object v1, p2

    check-cast v1, Lcom/xingbook/park/ui/bk;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_15

    :goto_c
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bk;->a(Lcom/xingbook/park/b/e;Z)V

    goto/16 :goto_2

    :cond_15
    move v3, v4

    goto :goto_c

    :cond_16
    new-instance v2, Lcom/xingbook/park/ui/bk;

    iget-object v1, p0, Lcom/xingbook/park/a/p;->a:Landroid/app/Activity;

    iget v5, p0, Lcom/xingbook/park/a/p;->c:F

    iget-object v6, p0, Lcom/xingbook/park/a/p;->e:Lcom/xingbook/park/ui/be;

    invoke-direct {v2, v1, v5, v6}, Lcom/xingbook/park/ui/bk;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V

    new-instance v1, Landroid/widget/AbsListView$LayoutParams;

    invoke-direct {v1, v8, v7}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    move-object v1, v2

    check-cast v1, Lcom/xingbook/park/ui/bk;

    invoke-virtual {p0}, Lcom/xingbook/park/a/p;->getCount()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne p1, v5, :cond_17

    :goto_d
    invoke-virtual {v1, v0, v3}, Lcom/xingbook/park/ui/bk;->a(Lcom/xingbook/park/b/e;Z)V

    move-object p2, v2

    goto/16 :goto_2

    :cond_17
    move v3, v4

    goto :goto_d

    :cond_18
    move-object p2, v2

    goto/16 :goto_2
.end method
